package ch01.decrator;

/**
 * Created by zc on 2016/11/20.
 */
public class Client {
    public static void main(String[] args){
        Component component = new ConcreateComponent();
        component = new ConcreateDecrator1(component);
        component = new ConcreateDecrator2(component);
        component.doSomething();
    }
}
